{% extends "VozminoskiStoreBundle:Admin:layout.html.twig" %}
{% block content %}
<h1>Catalog list</h1>

<table class="table table table-bordered table-hover table-striped">
    <thead>
        <tr>
            <th>Id</th>
            <th>Name</th>
            <th>Url</th>
        </tr>
    </thead>
    <tbody>
    {% for entity in entities %}
        <tr>
            <td>{{ entity.id }}</td>
            <td><a href="{{ path('admin_category_edit', { 'id': entity.id }) }}">{{ entity.name }}</a></td>
            <td>{{ entity.url }}</td>
        </tr>
    {% endfor %}
    </tbody>
</table>

<div>
    <a href="{{ path('admin_category_new') }}" class="btn btn-success">
        Create a new entry
    </a>
</div>
{% endblock %}
